package com.dream.style.app.ac.acc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.dream.style.R;
import com.dream.style.app.ac.main.KztActivity;

/**
 * @Created by lincyu
 * @Time: 2018/11/13 12:54
 * @Decs: 类
 */
public class ReSetPswActivity extends Activity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_resetpsw);
        findViewById(R.id. btn_reset_end).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(ReSetPswActivity.this, "设置成功",
                        Toast.LENGTH_SHORT).show();
                start(KztActivity.class);
            }
        });
    }

    private void start(Class s) {
        Intent i = new Intent(this, s);
        startActivity(i);
        finish();
    }


}



